package org.locker.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.locker.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;

/**
 * 提现对象 lk_withdraw
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lk_withdraw")
public class Withdraw extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 提现ID
     */
    @TableId(value = "withdraw_id")
    private Long withdrawId;

    /**
     * 提现类型; self:用户提现, system:系统提现
     */
    private String withdrawType;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 提现单号
     */
    private String withdrawNo;

    /**
     * 微信交易流水号
     */
    private String transactionNo;

    /**
     * 交易金额
     */
    private BigDecimal amount;

    /**
     * 交易成功时间
     */
    private Date withdrawTime;

    /**
     * 状态：withdrawing 提现中,withdraw_success 退款成功,fail 用户取消,交易失败(),
     */
    private String withdrawStatus;

    /**
     * 退款备注
     */
    private String withdrawRemark;

    /**
     * 备注
     */
    private String remark;

    /**
     * 订单号
     */
    private String orderNo;


}
